load TagBlock,AttachData,ListBlock,References,SourceButtons

! Start template
#tagKey="SOUR details"
Title @this.altview&" - "&local(#tagKey)
cell GroupBox local(#tagKey)
width -1
SetTab 120

Show PAGE
show DATA
ShowAll EVEN
show QUAY

EndGroup

! --------- NOTEs and OBJEs -----------
gosub TagBlock,"OBJE",local("Multimedia")
if NOTE is here
  cell GroupBox,local("NOTE")
  width -1
  newline -#lineSkip-3
  #lineSkip=-2
  Gosub ListBlock,"NOTE","notes",local("Click to attach notes"),"Attach Notes"
  #lineSkip=#lineSkip$

  EndGroup
endif

! --------- Attach links
newline
cell GroupBox,local("Attach")
width -1
newline -#lineSkip-3
#lineSkip=0
Show NOTE
Show OBJE
GoSub AttachData
GoSUb SourceButtons,"false",-1
EndGroup
#lineSkip=#lineSkip$

optionaltag EVEN,local("Event type cited"),"event type"

DisplayHeight <600

